feature/AB#9074 - Add Comments to Applicant profile#2190
Merged
JamesPasta merged 22 commits intodevfrom Apr 1, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for comments on the Applicant profile by extending the shared CommentsWidget to operate under /GrantApplicants/..., introducing a new ApplicantComment type persisted in the tenant DB, and updating comment-mention email notifications to link to either application or applicant details.
Changes:
- Add
ApplicantCommentdomain/entity support (enum + EF Core table/migration + repository + mappings) and wire it intoCommentsManager. - Enable CommentsWidget rendering/refreshing on Applicant Details (new widget route + Applicant Details UI/JS wiring).
- Update mention-notification payload and link generation to handle applicant comments.
Reviewed changes
Copilot reviewed 21 out of 22 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/CommentsWidget/Default.js | Updates mention-notification request payload (now posts ownerId/commentType). |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/CommentsWidget/Default.cshtml | Adds widget data attributes and adjusts container id format for comment counters/metadata. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/CommentsWidget/CommentsWidgetController.cs | Adds applicant widget route prefix so refresh works from /GrantApplicants/.... |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/Details.js | Adjusts comment counter update delay. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/Details.cshtml | Replaces numeric commentType args with CommentType enum values. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/Applicants/Details.js | Adds comments widget initialization + refresh subscription + counters. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/Applicants/Details.cshtml | Adds Comments tab content and passes applicant comment type into CommentsWidget. |
| applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Repositories/ApplicantCommentsRepository.cs | New EF Core repository for applicant comments list queries. |
| applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/GrantTenantDbContextModelSnapshot.cs | Snapshot updated for ApplicantComments table and relationships. |
| applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260309215203_AB9074_Add_Applicant_Comments.cs | Adds ApplicantComments table migration. |
| applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260309215203_AB9074_Add_Applicant_Comments.Designer.cs | Migration designer for the new table. |
| applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/EntityFrameworkCore/GrantTenantDbContext.cs | Adds DbSet<ApplicantComment> and configures entity mapping/relationships. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Comments/CommentsManager.cs | Adds ApplicantComment handling across create/get/update/display/pin persistence. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Comments/AssessmentComment.cs | Refactors file-scoped namespace/class layout (no behavior change). |
| applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Comments/ApplicationComment.cs | Refactors file-scoped namespace/class layout (no behavior change). |
| applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Comments/ApplicantComment.cs | New domain entity for applicant comments. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Domain.Shared/Comments/CommentType.cs | Adds ApplicantComment and configures string enum JSON serialization. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Application/GrantManagerApplicationAutoMapperProfile.cs | Adds ApplicantComment → CommentDto mapping. |
| applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Domain.Shared/Comments/CommentType.cs | Adds notifications-side CommentType enum to mirror GrantManager and serialize as strings. |
| applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Application/EmailNotificaions/EmailNotificationService.cs | Updates comment notification link generation (application vs applicant). |
| applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Application.Contracts/Emails/EmailCommentDto.cs | Updates comment notification DTO contract (OwnerId + CommentType). |
| applications/Unity.GrantManager/.github/agents/feature-planner.agent.md | Updates agent metadata/instructions (not directly related to feature runtime). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 similar comment
JamesPasta
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request overview
Adds support for comments on the Applicant profile by extending the shared CommentsWidget to operate under
/GrantApplicants/..., introducing a newApplicantCommenttype persisted in the tenant DB, and updating comment-mention email notifications to link to either application or applicant details.Changes:
ApplicantCommentdomain/entity support (enum + EF Core table/migration + repository + mappings) and wire it intoCommentsManager.